/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.parser.IParser;
/**
 *
 * @author wudihua
 */
public class FhirContextContstant {
     public static final FhirContext FHIR_CONTEXT = FhirContext.forDstu3();

    /**
     * bean 解析成 json
     * @return
     */
    public static IParser getJsonParse(){
        return FHIR_CONTEXT.newJsonParser();
    }

    /**
     * bean 解析成 xml
     * @return
     */
    public static IParser getXMLParse(){
        return FHIR_CONTEXT.newXmlParser();
    }
}
